//
//  NSArray+Filter.h
//  searchController
//
//  Created by mac on 16/10/26.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef BOOL(^FilterArrayBlock) (id obj);
typedef BOOL(^ForEach) (id obj , NSInteger index);
typedef id(^Map) (id obj , NSInteger index);


@interface NSArray (Filter)

- (NSArray *)filter:(FilterArrayBlock)block;
- (NSArray *)filter:(ForEach)each mapBlock:(Map)mBlock;
@end
